Remove broken approach to get stable sort of CSS rules
authorAlexander Larsson <alexl@redhat.com>
Thu, 15 Mar 2012 15:22:04 +0000 (16:22 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 15 Mar 2012 20:12:32 +0000 (21:12 +0100)
The pointer comparisons in the sort compare function just doesn't
work.

We still need a stable sort, but the plan is to add a real
one in glib.

gtk/gtkcssprovider.c

index 100155058b700b131fb276ea0fd3e09a708f1e69..77c75a64e6afdd44cf62a1b27fcefc607bed36b6 100644 (file)
@@ -2351,13 +2351,6 @@ gtk_css_provider_compare_rule (gconstpointer a_,
   if (compare != 0)
     return compare;
 
-  /* compare pointers in array to ensure a stable sort */
-  if (a_ < b_)
-    return -1;
-
-  if (a_ > b_)
-    return 1;
-
   return 0;
 }